﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseDao
{
    public class BaseFilter
    {
        public string Key { get; set; }

        public string Operation { get; set; }

        public object Value { get; set; }
    }

    public static class ListBaseFilterEx
    {
        public static void Add(this List<BaseFilter> _list, string key, object value)
        {
            _list.Add(new BaseFilter { Key = key, Operation = "=", Value = value });
        }

        public static void Add(this List<BaseFilter> _list, string key, string operation, object value)
        {
            _list.Add(new BaseFilter { Key = key, Operation = operation, Value = value });
        }
    }
}
